package com.hl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hl.mapper.PointProductsMapper;
import com.hl.domain.PointProducts;
import com.hl.service.IPointProductsService;

/**
 * 积分商品Service业务层处理
 * 
 * @author vv
 * @date 2025-08-07
 */
@Service
public class PointProductsServiceImpl implements IPointProductsService 
{
    @Autowired
    private PointProductsMapper pointProductsMapper;

    /**
     * 查询积分商品
     * 
     * @param id 积分商品主键
     * @return 积分商品
     */
    @Override
    public PointProducts selectPointProductsById(String id)
    {
        return pointProductsMapper.selectPointProductsById(id);
    }

    /**
     * 查询积分商品列表
     * 
     * @param pointProducts 积分商品
     * @return 积分商品
     */
    @Override
    public List<PointProducts> selectPointProductsList(PointProducts pointProducts)
    {
        return pointProductsMapper.selectPointProductsList(pointProducts);
    }

    /**
     * 新增积分商品
     * 
     * @param pointProducts 积分商品
     * @return 结果
     */
    @Override
    public int insertPointProducts(PointProducts pointProducts)
    {
        return pointProductsMapper.insertPointProducts(pointProducts);
    }

    /**
     * 修改积分商品
     * 
     * @param pointProducts 积分商品
     * @return 结果
     */
    @Override
    public int updatePointProducts(PointProducts pointProducts)
    {
        return pointProductsMapper.updatePointProducts(pointProducts);
    }

    /**
     * 批量删除积分商品
     * 
     * @param ids 需要删除的积分商品主键
     * @return 结果
     */
    @Override
    public int deletePointProductsByIds(String[] ids)
    {
        return pointProductsMapper.deletePointProductsByIds(ids);
    }

    /**
     * 删除积分商品信息
     * 
     * @param id 积分商品主键
     * @return 结果
     */
    @Override
    public int deletePointProductsById(String id)
    {
        return pointProductsMapper.deletePointProductsById(id);
    }
}
